def line_conf():
    b = 15
    def line(x):
        return 2*x+b
    return line       # return a function object

b = 50
my_line = line_conf()
print(my_line(5))
print(my_line(6))
